home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-10-15 | 2.9 KB | 63 lines | [ttro/ttxt] |
- January 10, 1995
-
- How to use the experimental Threaded Virtual User External Tool:
-
- The basic idea is for a single external tool to be able to execute multiple
- service requests concurrently, which is a fancy way of saying "at the
- same time." The existing template(s) can only execute one service at a time,
- and must complete each service call before beginning the next one.
-
- Many services are very short and will not benefit from threading. Others
- take several seconds or minutes, or you may want to leave a service call
- running for the entire duration of a script. Threading the tool allows its
- client scripts to access it as if each script was the only client. By calling
- services asynchronously from VU, you can even execute multiple services
- concurrently from the same script.
-
- First, you need to install the Thread Manager on the host and/or target,
- depending on where you want to run the tool. The threaded tool will work
- without the Threads Manager present, but will not execute threaded services.
- If you are using system software older than 7.5, drag the Thread Manager
- extension to the System Folder and restart. If you are using System 7.5, it
- already contains the Thread Manager.
-
- (Note: the Thread Manager increases the performance of the Virtual User
- application even when external tools are not involved, so you may want
- to leave it installed on the host.)
-
- Thread Manager 2.0.1 is provided with VU 2.1a2. There is a newer version
- somewhere on the ETO CD. Either one should work, but this template
- was developed with 2.0.1 and has not yet been tested with the new version.
-
- Second, copy the CPlus Tool Template folder from the ETO CD to a local
- hard disk. You may need to rebuild the desktop if VU can not find the tool
- application.
-
- The tool is already compiled and ready to run. The script to test it is
- called "ThreadedVUTool.vu", and this requires VU 2.1 to run. Play with the
- EchoThread service. Its only function is to demonstrate how to use threads
- in a VU external tool. It will echo a list after pausing for a period of time.
- You can change the amount of time and other things through the script
- parameters.
-
- Third, read the DocViewer document called "VU 2.1 Tool Template design".
- It describes the internal C++ non-threaded external tool model, and then
- describes the changes made to implement threaded service calls.
-
- If you do not understand the Thread Manager, DON'T WORRY, BE HAPPY!! The
- good news is that you do not have to understand threads to use them in the
- new C++ external tool template.
-
- All you have to do is define new Service objects like before, but declare
- them as ThreadedService objects instead. Just like before, you need to call
- the CheckForCancel() function regularly. AND THAT'S ALL!! The template does
- all the rest for you.
-
- If you want to get serious about threads, read the Thread Manager
- documention, located elsewhere on the ETO CD.
-
-
- Have fun,
-
- Stuart Russell
- HLQ Automation Technical Lead